<%--<%@ page contentType='text/html; charset=UTF-8' %>--%>
<%@ page import='java.sql.ResultSet' %>
<%@ page import='forum.*' %>
<%@taglib uri="/WEB-INF/tlds/label.tld" prefix="lutag" %>

<% String sessionUsername = (String) session.getAttribute("username"); %>

<% String forum_id = request.getParameter("forum_id"); %>
<% String reqThread_id = request.getParameter("thread_id"); %>
<% String reqReply_id = request.getParameter("reply_id"); %>
<% String start = request.getParameter("start"); %>
<% String message = request.getParameter("message"); %>


<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">

<html>
<head>
    <title><lutag:label name="editmessage"/></title>
    <link rel="stylesheet" href="./css/forum.css" type="text/css">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <script src="../editor/kindeditor.js"></script>
    <script>
        KE.show({
                id : 'myarea'
        });
	</script>
</head>
<jsp:include page="./include/body.jsp" flush="true"/>

<table width="100%" height="20" border="0" cellpadding="1" cellspacing="1">
    <tr>
        <td height="20" valign="top" class="pathBar">
            <a href="index.jsp" class="pathBarLink"><%= Variable.getForumName() %>
            </a><span class="pathBarSeperator"> > </span>
            <a href="./index.jsp?page=thread&forum_id=<%= forum_id %>"
               class="pathBarLink"><%= Utilities.getforumTile(forum_id) %>
            </a><span class="pathBarSeperator"> > </span>
            <a href="./index.jsp?page=thread&forum_id=<%= forum_id %>&thread_id=<%=reqThread_id%>&start=<%= start %>"
               class="pathBarLink"><%= Utilities.getThreadTile(forum_id, reqThread_id) %>
            </a><span class="pathBarSeperator"> > </span><a
                href="./index.jsp?page=editmessage&forum_id=<%= forum_id %>&thread_id=<%=reqThread_id%>&reply_id=<%= reqReply_id %>&start=<%= start %>"
                class="pathBarLink"><lutag:label name="editmessage"/></a>
        </td>
    </tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" class="table_bg" border="0" align="center">
    <tr>
        <td>
            <table cellspacing="1" cellpadding="4" width="100%" border="0">
                <tr class="tr_bg">
                    <td align="left" colspan="3" class="tr_bg">
                        <span class="span_style">
                            <b><lutag:label name="editmessage"/></b>
                        </span>
                    </td>
                </tr>
                <tr bgcolor="#ffffff">
                    <td align="left" valign="top" width="0">
                        <span class="span_style">
                            <b><lutag:label name="str_msg"/><lutag:label name="colon"/></b>
                            <form action="../servlet/Reply.edit" method="POST" name="formmessage">
                                <input type="hidden" name="start" value="<%= start %>">
                                <input type="hidden" name="forum_id" value="<%= forum_id %>">
                                <input type="hidden" name="thread_id" value="<%= reqThread_id %>">
                                <input type="hidden" name="reply_id" value="<%= reqReply_id %>">
                                <textarea id="myarea" name="message" cols="100" rows="10" style="width:700px;height:300px;"><%= message %>
                                </textarea>
                                <br>
                                <input type="submit" value='<lutag:label name="change"/>'>
                            </form>
                        </span>
                    </td>
                </tr>
                <tr class="table_bg">
                        <%
                             String back1 = "<a href=index.jsp?page=message&forum_id=" + forum_id + "&thread_id=" + reqThread_id + "&start=" + start + ">" ;
                             String back2 = "</a>";
                        %>
                    <td align="left" colspan="3" class="tr_bg">
                        <span class="span_style">
                        <b><%= back1 %><lutag:label name="back"/><%= back2 %>
                        </b>
                        </span>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<jsp:include page="./include/footer.jsp" flush="true"/>